package com.ns.scs.mod.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.entry.BaseModel;
import com.ns.core.utils.StpUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 语言模型实体
 *
 * @author lw
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName(value = "SCSS_MOD")
public class Mod extends BaseModel {

    /**
     * id，--主键、自增
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * admin名称
     */
    private String name;

    /**
     * code
     */
    private String code;

    /**
     * 类别
     */
    private String type;

    /**
     * 地址
     */
    private String url;

    /**
     * 请求方式
     */
    private String method;

    /**
     * app_id
     */
    private String appId;

    /**
     * app_key
     */
    private String apiKey;

    /**
     * secret_key
     */
    private String apiSecret;

    /**
     * 扩展参数
     */
    private String extraFields;

    /**
     * Content-Type application/json
     */
    private String contentType;

    /**
     * 所属租户
     */
    private Long rid = StpUtil.getRid();
}
